package org.noootsab.gae.games.tzaar.model.player {
import flash.utils.IDataInput;
import flash.utils.IDataOutput;
import flash.utils.IExternalizable;

[Bindable]
[RemoteClass(alias="org.noootsab.gae.games.tzaar.model.Player")]
public class Player implements IExternalizable {

    public var key:String;
    public var userId:String;
    public var email:String;

    public function Player() {
    }

    public function readExternal(input:IDataInput):void {
        key = input.readObject() as String;
        userId = input.readObject() as String;
        email = input.readObject() as String;
    }

    public function writeExternal(output:IDataOutput):void {
        output.writeObject(key);
        output.writeObject(userId);
        output.writeObject(email);
    }
}
}